package com.wclass.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 关注表
 * </p>
 *
 * @author 张浩高
 * @since 2018-12-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_focus")
@SuppressWarnings("serial")
public class BaseFocus extends SuperEntity<BaseFocus> {
    /**
     * 是否删除（0：有效，1：删除）
     */
    @JSONField(serialize = false)
    @TableLogic
    private Integer state = 0;
    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;
    /**
     * 被关注用户id
     */
    @ApiModelProperty("被关注用户id")
    @TableField("focus_user_id")
    private Long focusUserId;

    @ApiModelProperty("0 新粉丝 1粉丝")
    @TableField("is_new")
    private Integer isNew;
}
